//
//  ICMCarePackageView.h
//  ICrEAM
//
//  Created by rainimute on 16/10/27.
//  Copyright © 2016年 mac. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "ICMTitleTextFeildView.h"

@class ICMCarePackageDownModel;
@class ICMCarePackageModel;

@interface ICMCarePackageView : UIView

@property (nonatomic, strong) NSMutableArray *packages;
@property(nonatomic,weak)UIViewController *getcarCtr;
//是否编辑模式
@property (nonatomic, assign) BOOL isEditType;
@property (nonatomic, strong) NSString *modelCode;//查询时要传车型
@property (nonatomic, strong) ICMTitleTextFeildView *carTypeView;

@property (nonatomic, strong) ICMCarePackageModel *carePackageModel;
@property (nonatomic, strong) ICMCarePackageDownModel *carePackageDownModel;

/*已选择的套餐序号*/
@property (nonatomic, strong) NSMutableArray *careSelectedItemIndexs;
/*已经选择的套餐*/
@property (nonatomic, strong) NSMutableArray *careSelectedItems;

/*易损件和深度保养*/
@property (nonatomic, assign) BOOL isHave_Wiper;

@property (nonatomic, assign) BOOL isHave_Brake_block;
@property (nonatomic, copy) NSString *BRAKE_BLOCK_REMARK;

@property (nonatomic, assign) BOOL isHave_Wheel;
@property (nonatomic, copy) NSString *WHEEL_REMARK;

@property (nonatomic, assign) BOOL isHave_Other;
@property (nonatomic, copy) NSString *Other_REMARK;

@property (nonatomic, assign) BOOL isHave_Lubrication;

@property (nonatomic, assign) BOOL isHave_FUEL_SYSTEM_MAINTENANCE;

@property (nonatomic, assign) BOOL isHave_AIR_SYSTEM_MAINTENANCE;

@property (nonatomic, assign) BOOL isHave_AIR_CONDITION_MAINTENANCE;

- (instancetype)initCarePackageViewWithFrame:(CGRect)frame;
+ (instancetype)createCarePackageViewWithFrame:(CGRect)frame;

- (void)changeCarePackageTableViewFrame;

//编辑时候调用
- (void)setupCarePackageViewWithTopModel:(ICMCarePackageModel*)topModel;
- (void)setupCarePackageViewWithDownModel:(ICMCarePackageDownModel*)downModel;

- (void)getCarePackageWithData:(id)data;

@end
